//
//package com.rt.schedulebase.service.impl;
//import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
//import com.baomidou.mybatisplus.core.conditions.Wrapper;
//import java.util.Map;
//import java.util.HashMap;
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
//import java.util.List;
//import com.rt.schedulebase.dto.ExamReferDto;
//import java.io.Serializable;
//import com.rt.schedulebase.service.IExamReferService;
//import com.rt.schedulebase.entity.ExamRefer;
//import com.rt.schedulebase.mapper.ExamReferMapper;
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//public class ExamReferServiceImpl extends ServiceImpl<ExamReferMapper, ExamRefer> implements IExamReferService {
//    @Override
//    public boolean insertSelective(final ExamRefer examRefer) {
//        return this.retBool(Integer.valueOf(((ExamReferMapper) this.baseMapper).insert(examRefer)));
//    }
//    @Override
//    public boolean deleteByPrimaryKey(final String key) {
//        return this.retBool(Integer.valueOf(((ExamReferMapper) this.baseMapper).deleteById((Serializable) key)));
//    }
//    @Override
//    public boolean updateByPrimaryKeySelective(final ExamRefer examRefer) {
//        return this.retBool(Integer.valueOf(((ExamReferMapper) this.baseMapper).updateById(examRefer)));
//    }
//    @Override
//    public ExamRefer selectByPrimaryKey(final String key) {
//        return (ExamRefer) ((ExamReferMapper) this.baseMapper).selectById((Serializable) key);
//    }
//    @Override
//    public List<ExamRefer> getList(final ExamReferDto dto) {
//        final QueryWrapper<ExamRefer> qw = (QueryWrapper<ExamRefer>) new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("APPLY_ID", dto.getApplyId());
//        map.put("SICK_ID", dto.getSickId());
//        map.put("EXAM_CLASS", dto.getExamClass());
//        map.put("REQ_DEPT", dto.getReqDept());
//        map.put("REQ_HOSPITAL_CODE", dto.getReqHospitalCode());
//        map.put("PATIENT_SOURCE", dto.getPatientSource());
//        map.put("SCHEDULE_STATUS", dto.getScheduleStatus());
//        qw.allEq((Map) map, false);
//        final List<ExamRefer> list = (List<ExamRefer>) ((ExamReferMapper) this.baseMapper).selectList((Wrapper) qw);
//        return list;
//    }
//    @Override
//    public List<ExamRefer> getListAll() {
//        return (List<ExamRefer>) ((ExamReferMapper) this.baseMapper).selectList((Wrapper) null);
//    }
//    @Override
//    public boolean delete(final ExamRefer examRefer) {
//        final UpdateWrapper<ExamRefer> uw = (UpdateWrapper<ExamRefer>) new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("APPLY_ID", examRefer.getApplyId());
//        uw.allEq((Map) map, false);
//        return this.retBool(Integer.valueOf(((ExamReferMapper) this.baseMapper).delete((Wrapper) uw)));
//    }
//    @Override
//    public boolean update(final ExamRefer examRefer) {
//        final UpdateWrapper<ExamRefer> uw = (UpdateWrapper<ExamRefer>) new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("APPLY_ID", examRefer.getApplyId());
//        uw.allEq((Map) map, false);
//        return this.retBool(Integer.valueOf(((ExamReferMapper) this.baseMapper).update(examRefer, (Wrapper) uw)));
//    }
//    @Override
//    public ExamRefer getInfo(final ExamReferDto dto) {
//        final QueryWrapper<ExamRefer> qw = (QueryWrapper<ExamRefer>) new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("APPLY_ID", dto.getApplyId());
//        qw.allEq((Map) map, false);
//        return (ExamRefer) ((ExamReferMapper) this.baseMapper).selectOne((Wrapper) qw);
//    }
//}
